package com.itheima.test6;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("姓名：");
        String name = sc.next();
        System.out.println("年龄：");
        String age1 = sc.next();
        System.out.println("身高：");
        String height1 = sc.next();
        System.out.println("婚否：");
        String married1 = sc.next();
        System.out.println("性别：");
        String sex1 = sc.next();

        int age=Integer.parseInt(age1);
        double height = Double.parseDouble(height1);
        boolean married = Boolean.parseBoolean(married1);
        char sex = sex1.charAt(0);
        Student student = new Student(name, age, height, married, sex);
        System.out.println(student.toString());
    }
}
